package demo.event;

import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;


@Component
public class MyEventListener  {
	
	 @EventListener
	 public void eventListener1(MyEvent event) {
			System.out.println("eventListener1,"+event.getTime());
	 }
	 
	 @EventListener
	 public void eventListener2(MyEvent event) {
			System.out.println("eventListener2,"+event.getTime());

	 }
	
	
}